FROM registry.cn-hangzhou.aliyuncs.com/zhaoxin-edu/jre8:latest
VOLUME /tmp
ADD target/blog-web.jar app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-Dfile.encoding=UTF-8", "-Djava.security.egd=file:/dev/./urandom", "-XX:MetaspaceSize=128m", "-XX:MaxMetaspaceSize=128m", "-Xms1024m", "-Xmx1024m", "-Xmn256m", "-Xss256k", "-XX:SurvivorRatio=8", "-XX:+UseConcMarkSweepGC", "-jar", "/app.jar"]
